package com.tchy.cloud.entity;

import javax.persistence.*;

import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created by xiaoji on 2017/2/20.
 */
@Entity
@Table(name = "g_job_major", schema = "", catalog = "")
public class GJobMajorEntity {
    private Long taskId;
    private String taskEn;
    private String majorLink;
    private String circleRule;
    private int gatherType;
    private Integer gatherWay;
    private String conditional;
    private String attribute;
    private int ruleId;
    private Integer linkType;
    private Date createTime;
    private byte isValid;
    private byte deleted;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "task_id")
    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    @Basic
    @Column(name = "task_en")
    public String getTaskEn() {
        return taskEn;
    }

    public void setTaskEn(String taskEn) {
        this.taskEn = taskEn;
    }

    @Basic
    @Column(name = "major_link")
    public String getMajorLink() {
        return majorLink;
    }

    public void setMajorLink(String majorLink) {
        this.majorLink = majorLink;
    }

    @Basic
    @Column(name = "circle_rule")
    public String getCircleRule() {
        return circleRule;
    }

    public void setCircleRule(String circleRule) {
        this.circleRule = circleRule;
    }

    @Basic
    @Column(name = "gather_type")
    public int getGatherType() {
        return gatherType;
    }

    public void setGatherType(int gatherType) {
        this.gatherType = gatherType;
    }

    @Basic
    @Column(name = "gather_way")
    public Integer getGatherWay() {
        return gatherWay;
    }

    public void setGatherWay(Integer gatherWay) {
        this.gatherWay = gatherWay;
    }

    @Basic
    @Column(name = "conditional")
    public String getConditional() {
        return conditional;
    }

    public void setConditional(String conditional) {
        this.conditional = conditional;
    }

    @Basic
    @Column(name = "attribute")
    public String getAttribute() {
        return attribute;
    }

    public void setAttribute(String attribute) {
        this.attribute = attribute;
    }

    @Basic
    @Column(name = "rule_id")
    public int getRuleId() {
        return ruleId;
    }

    public void setRuleId(int ruleId) {
        this.ruleId = ruleId;
    }

    @Basic
    @Column(name = "link_type")
    public Integer getLinkType() {
        return linkType;
    }

    public void setLinkType(Integer linkType) {
        this.linkType = linkType;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "is_valid")
    public byte getIsValid() {
        return isValid;
    }

    public void setIsValid(byte isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "deleted")
    public byte getDeleted() {
        return deleted;
    }

    public void setDeleted(byte deleted) {
        this.deleted = deleted;
    }

}
